package com.wisezone.workflow.core;

import java.util.List;

import com.wisezone.workflow.bean.WfActivity;
import com.wisezone.workflow.exception.WfCoreException;

/**
 * 活动对象
 * @author tss 2009-09-05
 *
 */
public interface Activity  extends BaseProperty{


	/**
	 * 获得下一活动
	 * @return
	 * @throws WfCoreException
	 */
	public Activity getNextActivity() throws WfCoreException ;
	
	/**
	 * 获得下一活动
	 * @param name 下一活动名称
	 * @return
	 * @throws WfCoreException
	 */
	public Activity getNextActivity(String name) throws WfCoreException;
	
	
	/**
	 * 获得活动的下一个连接集合
	 * @return
	 * @throws WfCoreException
	 */
	public List<Link> getLinks() throws WfCoreException;
	
	
	public ProcessDefinition getProcessDefinition() ;

	public void setProcessDefinition(ProcessDefinition processDefinition);
	
	public WfActivity getModel();

	public void setModel(WfActivity wfActivity);


    
}
